<template>
  <ul class="todo-main">
    <Item :key="index" v-for="(item, index) in todos" :todo="item" />
  </ul>
</template>

<script>
import Item from "@/components/Item";

export default {
  name: "Main",
  components: {Item},
  props: {
    todos: {
      type: Array,
      required: true
    }
  },

}
</script>

<style scoped>

.todo-main {
  margin-left: 0;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0;
}

</style>